import request from '@/utils/request'

export function createStockMaster(data) {
  return request({
    url: '/admin/leaves/stock-master/createStockMaster',
    method: 'post',
    data
  })
}

export function deleteStockMaster(whid, mid) {
  return request({
    url: `/admin/leaves/stock-master/deleteStockMaster/${whid}/${mid}`,
    method: 'delete'
  })
}

export function updateStockMaster(stockmaster) {
  return request({
    url: '/admin/leaves/stock-master/updateStockMaster',
    method: 'put',
    data: stockmaster
  })
}

export function getStockMasterList(searchObj) {
  return request({
    url: `/admin/leaves/stock-master/getStockMasterList`,
    method: 'post',
    data: searchObj
  })
}
